package com.yyfax.pay.third.enums.fuioudeposit;

import com.yyfax.pay.common.enums.FuiouDepositWithdrawType;

/**
 * 提现业务类型
 * 
 * @author buyi
 * @date 2017-11-28 16:48:07
 * @since v2.0.0
 */
public enum WithdrawBusiTypeEnum {
	/**
	 * 提现
	 */
	NORMAL("PV15"),
	/**
	 * 委托提现
	 */
	ENTRUST("PV65");
	private String value;

	private WithdrawBusiTypeEnum(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	/**
	 * 解析富友存管提现
	 * 
	 * @author buyi
	 * @date 2017-11-28 16:52:08
	 * @since v1.0.0
	 * @param busiType
	 * @return
	 */
	public static WithdrawBusiTypeEnum parse(FuiouDepositWithdrawType busiType) {
		if (FuiouDepositWithdrawType.NORMAL.equals(busiType)) {
			return WithdrawBusiTypeEnum.NORMAL;
		} else if (FuiouDepositWithdrawType.ENTRUST.equals(busiType)) {
			return WithdrawBusiTypeEnum.ENTRUST;
		}

		return null;
	}
}
